import http from '@/utils/http/axios'
import {ContentTypeEnum} from '@/enums/httpEnum'

enum Api {
    dbbackupList = '/serverlog/listtest',
    dbbackupDB = '/serverlog/backupDB',
}

/**
 * @description: 备份
 */
export function dbbackupDB(params: any) {
    return http.request({
        url: Api.dbbackupDB,
        method: 'POST',
        params,
    },{
        isTransformRequestResult: false
    })
}
/**
 * @description: 列表
 */
export function dbbackupList(params: any) {
    return http.request({
        url: Api.dbbackupList,
        method: 'GET',
        params,
    },{
        isTransformRequestResult: false
    })
}
